//
//  Constant.h
//  CSUIKit
//
//  Created by 网新中研 on 16/7/22.
//  Copyright © 2016年 centralsoft. All rights reserved.
//


#define kWindowH   [UIScreen mainScreen].bounds.size.height //应用程序的屏幕高度
#define kWindowW    [UIScreen mainScreen].bounds.size.width  //应用程序的屏幕宽度

#define WS(weakSelf)  __weak __typeof(&*self)weakSelf = self;

//移除iOS7之后，cell默认左侧的分割线边距
#define kRemoveCellSeparator \
- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath{\
cell.separatorInset = UIEdgeInsetsZero;\
cell.layoutMargins = UIEdgeInsetsZero; \
cell.preservesSuperviewLayoutMargins = NO; \
}

#define CSUIKIT_BUNDLE [NSBundle bundleWithPath:[[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"CSUIKitResource.bundle"]]

#define GET_CSUIKIT_BUNDLE_IMAGE(IMAGE_NAME) [UIImage imageNamed:IMAGE_NAME inBundle:CSUIKIT_BUNDLE compatibleWithTraitCollection:nil]

//移除子视图
#define REMOVE_SUBVIEWS(VIEW) [VIEW.subviews makeObjectsPerformSelector:@selector(removeFromSuperview)]
